from threading import Thread


def output(content):
    while True:
        print(content, end='', flush=True)


def main():
    Thread(target=output,daemon=True,args=('Ping',)).start()
    Thread(target=output,daemon=True,args=('Pong',)).start()
    print('hello world!')


if __name__ == '__main__':
    main()

